package com.fxnotes.domain.repository;

import com.fxnotes.database.inmemory.repository.EntityDuplicateException;
import com.fxnotes.domain.model.Chapter;
import com.fxnotes.domain.model.Page;

public interface IPageRepository {

    void add(Chapter chapter, Page page) throws EntityDuplicateException;

    void updateName(Page page, String name) throws EntityDuplicateException;

    void remove(Chapter chapter, Page page);
}
